#ifndef __STORMWIDGET_STORMWIDGET_UILIBRARY_CACTIVEXWND_ACTIVEXWND_H
#define __STORMWIDGET_STORMWIDGET_UILIBRARY_CACTIVEXWND_ACTIVEXWND_H

#include "WindowWnd.h"
#include "ActiveXUI.h"

class CActiveXCtrl;

class CActiveXWnd:public CWindowWnd
{
public:
	CActiveXWnd(void);
	virtual ~CActiveXWnd(void);
	HWND Init(CActiveXCtrl* pOwner,HWND hWndParent);
	LPCTSTR GetWindowClassName() const;
	void OnFinalMessage(HWND hWnd);
	LRESULT HandleMessage(UINT uMsg,WPARAM wParam,LPARAM lParam);
protected:
	void DoVerb(LONG iVerb);

	LRESULT OnMouseActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnSetFocus(UINT uMsg,WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnKillFocus(UINT uMsg,WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnEraseBkgnd(UINT uMsg,WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnPaint(UINT uMsg,WPARAM wParam, LPARAM lParam, BOOL& bHandled);
protected:
	CActiveXCtrl* m_pOwner;
};
#endif // __STORMWIDGET_STORMWIDGET_UILIBRARY_CACTIVEXWND_ACTIVEXWND_H
